import numpy as np

# 测试资料
source_map = np.array(list('1110001110001110011001100')).astype(np.int)
source_map = source_map.reshape(5,5)
print('原始资料：')
print(source_map)

# 滤波器(Filter)
filter1 = np.array(list('101010101')).astype(np.int).reshape(3,3)
print('\n滤波器:')
print(filter1)

width = height = 3
print(width)
print(height)